#endcoding:utf-8
# Load the Rails application.
require File.expand_path('../application', __FILE__)

# Initialize the Rails application.

Rails.application.initialize!

# WillPaginate Config
WillPaginate::ViewHelpers.pagination_options[:previous_label] = '上一页'
WillPaginate::ViewHelpers.pagination_options[:next_label] = '下一页'
PER_PAGE = 12

#Mailer
Rails.application.configure do
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.perform_deliveries = true
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.default :charset => "utf-8"
  config.action_mailer.default_url_options = { :host => 'localhost:3000' }
  ActionMailer::Base.smtp_settings = {
      :address => "smtp.126.com",
      :port => 25,
      :domain => "126.com",
      :authentication => :login,
      :user_name => "xwengf@126.com",
      :password => "6361880@xwf"
  }
  Rails.application.routes.default_url_options[:host] = 'localhost:3000'
end
